<?php /* Smarty version 2.6.18, created on 2016-12-19 19:10:33
         compiled from article/details.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'article/details.tpl', 32, false),array('modifier', 'date_format', 'article/details.tpl', 44, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "public/header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<style type="text/css">
.news_title 
{ 
  font-size: 24px; 
  font-weight: 400; 
  padding: 20px 0 10px 0;
 
  color:#38485A; 
}
.news_author 
{ width: 100%; 
  color: #999999;  
  line-height: 18px;  
}
.news_about { color: #888888; border: 1px solid #F3F3F3; padding: 1px; margin: 5px auto 10px auto; line-height: 20px; background: none repeat 0 0 #F6F6F6; }
.news_content { line-height: 24px ;font-size: 14px;}
.news_content p { overflow: hidden; padding-bottom: 4px; padding-top: 6px; word-wrap: break-word; }
.fontcolor {
  color:#85A484;
}
.nextinfo { line-height: 24px; }/*上一篇下一篇*/
.nextinfo a:hover { color: #000; text-decoration: underline }
</style>
<article>
  <div class="l_box f_l">
    <!-- banner代码 结束 -->
    <div class="topnews">
      <h2>
      当前位置: 
        <?php unset($this->_sections['loc']);
$this->_sections['loc']['name'] = 'loc';
$this->_sections['loc']['loop'] = is_array($_loop=$this->_tpl_vars['locs']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['loc']['show'] = true;
$this->_sections['loc']['max'] = $this->_sections['loc']['loop'];
$this->_sections['loc']['step'] = 1;
$this->_sections['loc']['start'] = $this->_sections['loc']['step'] > 0 ? 0 : $this->_sections['loc']['loop']-1;
if ($this->_sections['loc']['show']) {
    $this->_sections['loc']['total'] = $this->_sections['loc']['loop'];
    if ($this->_sections['loc']['total'] == 0)
        $this->_sections['loc']['show'] = false;
} else
    $this->_sections['loc']['total'] = 0;
if ($this->_sections['loc']['show']):

            for ($this->_sections['loc']['index'] = $this->_sections['loc']['start'], $this->_sections['loc']['iteration'] = 1;
                 $this->_sections['loc']['iteration'] <= $this->_sections['loc']['total'];
                 $this->_sections['loc']['index'] += $this->_sections['loc']['step'], $this->_sections['loc']['iteration']++):
$this->_sections['loc']['rownum'] = $this->_sections['loc']['iteration'];
$this->_sections['loc']['index_prev'] = $this->_sections['loc']['index'] - $this->_sections['loc']['step'];
$this->_sections['loc']['index_next'] = $this->_sections['loc']['index'] + $this->_sections['loc']['step'];
$this->_sections['loc']['first']      = ($this->_sections['loc']['iteration'] == 1);
$this->_sections['loc']['last']       = ($this->_sections['loc']['iteration'] == $this->_sections['loc']['total']);
?>
          <a href="<?php echo $this->_tpl_vars['app']; ?>
/article/lists/pid/<?php echo $this->_tpl_vars['locs'][$this->_sections['loc']['index']]['id']; ?>
" title="<?php echo $this->_tpl_vars['locs'][$this->_sections['loc']['index']]['description']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['locs'][$this->_sections['loc']['index']]['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 18) : smarty_modifier_truncate($_tmp, 18)); ?>
</a> &gt;
        <?php endfor; endif; ?>
        <?php echo ((is_array($_tmp=$this->_tpl_vars['article']['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 27) : smarty_modifier_truncate($_tmp, 27)); ?>

      </h2>  
      <div class="news_title"> 
      <?php echo ((is_array($_tmp=$this->_tpl_vars['article']['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 100) : smarty_modifier_truncate($_tmp, 100)); ?>

      </div>
      <div class="news_about"> 
      【 作者：<span class="fontcolor">
      <?php echo $this->_tpl_vars['article']['author']; ?>
</span>  &nbsp;&nbsp;&nbsp;&nbsp;
      来源： <span class="fontcolor"><?php echo $this->_tpl_vars['article']['comefrom']; ?>
</span>&nbsp;&nbsp;&nbsp;&nbsp;
      点击数: <span class="fontcolor"><?php echo $this->_tpl_vars['article']['views']; ?>
</span> &nbsp;&nbsp;&nbsp;&nbsp;
      更新时间： <span class="fontcolor"><?php echo ((is_array($_tmp=$this->_tpl_vars['article']['posttime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</span> 】
      </div>
      <div class="news_content"> 
      <?php echo $this->_tpl_vars['article']['content']; ?>

      </div>
      
      <div class="fenx">
        <div class="bdsharebuttonbox">
          <a href="#" class="bds_more" data-cmd="more"></a>
          <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
          <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
          <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
          <a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>
          <a href="#" class="bds_huaban" data-cmd="huaban" title="分享到花瓣"></a>
          <a href="#" class="bds_fbook" data-cmd="fbook" title="分享到Facebook"></a>
          <a href="#" class="bds_twi" data-cmd="twi" title="分享到Twitter"></a>
        </div>
        <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"1","bdSize":"24"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
        </script>
      </div>

      <div class="nextinfo">
        <p>上一篇：<a href='<?php echo $this->_tpl_vars['url']; ?>
/details/aid/<?php echo $this->_tpl_vars['prevArticle']['id']; ?>
'>
        <?php echo ((is_array($_tmp=$this->_tpl_vars['prevArticle']['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 100) : smarty_modifier_truncate($_tmp, 100)); ?>
</a></p>
        <p>下一篇：
          <?php if ($this->_tpl_vars['nextArticle'] == false): ?>
            这是最后一篇，下一篇没有文章
          <?php else: ?>
            <a href="<?php echo $this->_tpl_vars['url']; ?>
/details/aid/<?php echo $this->_tpl_vars['nextArticle']['id']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['nextArticle']['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 100) : smarty_modifier_truncate($_tmp, 100)); ?>
</a>
          <?php endif; ?>          
        </p>
      </div>
    </div>

  </div>
  <div class="r_box f_r">
    <div class="tit01">
      <h3>关注我</h3>
      <div class="gzwm">
        <ul>
          <li><a class="xlwb" href="#" target="_blank">新浪微博</a></li>
          <li><a class="txwb" href="#" target="_blank">腾讯微博</a></li>
          <li><a class="rss" href="portal.php?mod=rss" target="_blank">RSS</a></li>
          <li><a class="wx" href="mailto:admin@admin.com">邮箱</a></li>
        </ul>
      </div>
    </div>
    <div class="cloud">
      <h3>栏目分类</h3>
      <ul>
        <?php unset($this->_sections['ls']);
$this->_sections['ls']['loop'] = is_array($_loop=$this->_tpl_vars['cols']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['ls']['name'] = 'ls';
$this->_sections['ls']['show'] = true;
$this->_sections['ls']['max'] = $this->_sections['ls']['loop'];
$this->_sections['ls']['step'] = 1;
$this->_sections['ls']['start'] = $this->_sections['ls']['step'] > 0 ? 0 : $this->_sections['ls']['loop']-1;
if ($this->_sections['ls']['show']) {
    $this->_sections['ls']['total'] = $this->_sections['ls']['loop'];
    if ($this->_sections['ls']['total'] == 0)
        $this->_sections['ls']['show'] = false;
} else
    $this->_sections['ls']['total'] = 0;
if ($this->_sections['ls']['show']):

            for ($this->_sections['ls']['index'] = $this->_sections['ls']['start'], $this->_sections['ls']['iteration'] = 1;
                 $this->_sections['ls']['iteration'] <= $this->_sections['ls']['total'];
                 $this->_sections['ls']['index'] += $this->_sections['ls']['step'], $this->_sections['ls']['iteration']++):
$this->_sections['ls']['rownum'] = $this->_sections['ls']['iteration'];
$this->_sections['ls']['index_prev'] = $this->_sections['ls']['index'] - $this->_sections['ls']['step'];
$this->_sections['ls']['index_next'] = $this->_sections['ls']['index'] + $this->_sections['ls']['step'];
$this->_sections['ls']['first']      = ($this->_sections['ls']['iteration'] == 1);
$this->_sections['ls']['last']       = ($this->_sections['ls']['iteration'] == $this->_sections['ls']['total']);
?>
        <li><a href="<?php echo $this->_tpl_vars['app']; ?>
/article/lists/pid/<?php echo $this->_tpl_vars['cols'][$this->_sections['ls']['index']]['id']; ?>
"><?php echo $this->_tpl_vars['cols'][$this->_sections['ls']['index']]['title']; ?>
</a></li>
        <?php endfor; else: ?>
        暂无分类
        <?php endif; ?>
      </ul>
    </div>
    <!--tit01 end-->
    <!--adv <div class="ad300x100"> <img src="<?php echo $this->_tpl_vars['res']; ?>
/images/ad300x100.jpg"> </div> end-->
    <!--切换卡 moreSelect end -->
    <div class="tuwen">
      <h3>同类文章</h3>
      <ul>
           <?php unset($this->_sections['ls']);
$this->_sections['ls']['loop'] = is_array($_loop=$this->_tpl_vars['conns']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['ls']['name'] = 'ls';
$this->_sections['ls']['max'] = (int)6;
$this->_sections['ls']['show'] = true;
if ($this->_sections['ls']['max'] < 0)
    $this->_sections['ls']['max'] = $this->_sections['ls']['loop'];
$this->_sections['ls']['step'] = 1;
$this->_sections['ls']['start'] = $this->_sections['ls']['step'] > 0 ? 0 : $this->_sections['ls']['loop']-1;
if ($this->_sections['ls']['show']) {
    $this->_sections['ls']['total'] = min(ceil(($this->_sections['ls']['step'] > 0 ? $this->_sections['ls']['loop'] - $this->_sections['ls']['start'] : $this->_sections['ls']['start']+1)/abs($this->_sections['ls']['step'])), $this->_sections['ls']['max']);
    if ($this->_sections['ls']['total'] == 0)
        $this->_sections['ls']['show'] = false;
} else
    $this->_sections['ls']['total'] = 0;
if ($this->_sections['ls']['show']):

            for ($this->_sections['ls']['index'] = $this->_sections['ls']['start'], $this->_sections['ls']['iteration'] = 1;
                 $this->_sections['ls']['iteration'] <= $this->_sections['ls']['total'];
                 $this->_sections['ls']['index'] += $this->_sections['ls']['step'], $this->_sections['ls']['iteration']++):
$this->_sections['ls']['rownum'] = $this->_sections['ls']['iteration'];
$this->_sections['ls']['index_prev'] = $this->_sections['ls']['index'] - $this->_sections['ls']['step'];
$this->_sections['ls']['index_next'] = $this->_sections['ls']['index'] + $this->_sections['ls']['step'];
$this->_sections['ls']['first']      = ($this->_sections['ls']['iteration'] == 1);
$this->_sections['ls']['last']       = ($this->_sections['ls']['iteration'] == $this->_sections['ls']['total']);
?>
             <li><a href="<?php echo $this->_tpl_vars['app']; ?>
/article/details/aid/<?php echo $this->_tpl_vars['conns'][$this->_sections['ls']['index']]['id']; ?>
"><img src="<?php echo $this->_tpl_vars['public']; ?>
/uploads/<?php echo $this->_tpl_vars['conns'][$this->_sections['ls']['index']]['imgname']; ?>
">
             <b><?php echo ((is_array($_tmp=$this->_tpl_vars['conns'][$this->_sections['ls']['index']]['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 28) : smarty_modifier_truncate($_tmp, 28)); ?>
</b></a>
             <p><span class="tulanmu"><a href="#">个人博客</a></span>
             <span class="tutime"><?php echo ((is_array($_tmp=$this->_tpl_vars['conns'][$this->_sections['ls']['index']]['posttime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</span></p>
             </li>
           <?php endfor; else: ?>
           暂无文章
           <?php endif; ?>
      </ul>
    </div>
    
  </div>
  <!--r_box end --> 
</article>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "public/footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>